﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Order
{
    /// <summary>
    /// 订单表
    /// </summary>
    [Table("Orders")]
    public class Orders
    {

        /// <summary>
        /// 自然主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 保险名称
        /// </summary>
        public String InsuranceId { get; set; }

        /// <summary>
        /// 售出门店
        /// </summary>
        public String StoreId { get; set; }

        /// <summary>
        /// 顾客姓名
        /// </summary>
        public String CustomerName { get; set; }

        /// <summary>
        /// 顾客电话
        /// </summary>
        public String CustomerPhone { get; set; }

        /// <summary>
        /// 手机品牌
        /// </summary>
        public String BrandId { get; set; }

        /// <summary>
        /// 手机型号
        /// </summary>
        public String PhoneModelId { get; set; }

        /// <summary>
        /// IMEI码
        /// </summary>
        public String IMEI { get; set; }

        /// <summary>
        /// 激活时间
        /// </summary>
        public DateTime? ActiveTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public String State { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Desc { get; set; }

    }
}